<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>场用电详情</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="referrer" content="never" />
		<link rel="stylesheet" href="../../../../css/mui.min.css">
		<link rel="stylesheet" href="../../static/css/common.css" />	
		<link rel="stylesheet" href="../../static/components/components.css" />	
		<link rel="stylesheet" href="../../static/css/terminalwork.css" />	
		<script src="../../../../js/mui.min.js"></script>
		<script src="../../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../../js/jquery-3.2.1.min.js"></script>
		<script type="text/javascript" src="../../static/js/neiosRequst.js"></script>  <!--请求接口页面必需-->
		<script src="../../static/js/neiosCommon.js"></script>  <!--公共js页面必需-->
		<script src="../../static/js/upLoadHelper.js"></script>
		<script src="../../static/components/processLog.js"></script>
		<style>
			.defect-info-list{
				border-bottom:1px solid #ddd;
				margin:0 10px 8px
			}
			.defect-info-list:last-child{
				border-bottom:none;
				margin:0
			}
			.list-head{
				width: 94vw;
				margin-left: 3vw;
				background-color: #fff;
				padding: 10px;
				margin-bottom: 10px;
			}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav mui-bar-nav-bg">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 id="title" class="mui-title">工器具日常检查</h1>
		</header>
		<div class="mui-content" id="storBattery">
			<div style="position: sticky;top: 45px;z-index: 11;" class="flex-between list-head">
				<div class="flex-row" style="font-weight: bold;">
					<div class="icon"></div>
					操作列表
				</div>
			</div>
			<div id="terminalworkList" class="terminalwork-list">
				<div class="list" id="list">		
					<div v-for="(item,index) in neiosToolsCheckList" :key="index" class="terminalwork-list-item">
						<div class="terminalwork-list-title">工具名称：{{item.toolName}}</div>
						<div class="terminalwork-list-sec">
							<div>工具编号：{{item.toolCode}}</div>
							<div>检查时间：{{item.checkDate}}</div>
							<div>工具类型：{{"["+item.nodeCreateStaffCode+"]"+item.nodeCreateStaffName}}</div>
						</div>
						<div class="terminalwork-list-receivebtn" @click="upToolCheckDialogFn('details',item.toolsCheckInfoId,item)">详情</div>
					</div>
				</div>	
			</div>
			<div class="explain-dialog" v-if="toolCheckAddEditVisible">
				<div class="explain-in">
					<div class="explain-header">详情</div>
					<div class="explain-con">
						<div class="explain-con-title">工器具（电动、绝缘）检查记录</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">工具类型 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{cycleUnitChange(neiosToolsCheckInfo.toolType,'toolType')}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">工具编号 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.toolName}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">工具名称 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.toolName}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">存放位置 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.position}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">生产厂家 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.factory}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">型号规格 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.typeSpecification}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">检查日期 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.checkDate}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">下次检查日期 </div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.nextCheckDate}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">周期 </div>
							<div class="neios-form-item-con" style="width:60%;display:flex;justify-content: space-between;">
								{{neiosToolsCheckInfo.cycleCount}} {{cycleUnitChange(neiosToolsCheckInfo.cycleUnit,'cycleUnit')}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;">
							<div class="neios-form-item-lable" style="width:40%;">检查人 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.checkStaffCodeName}}
							</div>
						</div>
						<div class="neios-form-item" style="margin:0 5vw;" v-if="neiosToolsCheckInfo.toolType == '01101'">
							<div class="neios-form-item-lable" style="width:40%;">电压等级(kV) <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.voltageClass}}
							</div>
						</div>
						<div class="explain-con-title">检查项目列表</div>
						<div v-for="(listItem,index) in neiosToolsCheckInfo.neiosCheckItemNoteList" class="defect-info-list">
							<div class="neios-form-item" style="margin:0 5vw;">
								<div class="neios-form-item-lable" style="width:40%;">检查项目 <span class="red">*</span></div>
								<div class="neios-form-item-con" style="width:60%;">
									{{listItem.checkItemContent}}
								</div>
							</div>
							<div class="neios-form-item" style="margin:0 5vw;">
								<div class="neios-form-item-lable" style="width:40%;">检查要求 <span class="red">*</span></div>
								<div class="neios-form-item-con" style="width:60%;">
									{{listItem.checkItemRequirement}}
								</div>
							</div>
							<div class="neios-form-item" style="margin:0 5vw;">
								<div class="neios-form-item-lable" style="width:40%;">是否符合要求 <span class="red">*</span></div>
								<div class="neios-form-item-con" style="width:60%;">
									{{cycleUnitChange(listItem.checkItemResult,'flag')}}
								</div>
							</div>
						</div>
						<div class="explain-con-title">检查结论</div>
						<div class="neios-form-item" style="margin:0 5vw;"> 
							<div class="neios-form-item-lable" style="width:40%;">结论 <span class="red">*</span></div>
							<div class="neios-form-item-con" style="width:60%;">
								{{neiosToolsCheckInfo.checkRemark}}
							</div>
						</div>
						<div class="explain-con-title">
							<span>附件</span>
						</div>
						<div style="margin:3vw 5vw 0">
							<div class="nodata-tips" v-if="fileList.length == 0">暂无附件！</div>
							<div style="margin:3vw 0 5vw" v-else>
								<div class="neios-form-item" v-for="(item,i) in fileList">
									<div class="neios-form-item-lable" style="width:85%;text-align:left;">{{item.fileName}}</div>
									<div class="neios-form-item-con" style="width:15%;text-align:right;display: flex;justify-content:space-around">
										<div style="color:#004A86" v-on:click="downloadFile(item)">下载</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div style="display:flex">
						<div class="explain-btn" style="flex-grow:1" @click="closeToolCheckAddEdit">关闭</div> 
					</div>
				</div>
			</div>
			<div style="width: 100%;height: 60px;"></div>
			<div class="flex-between fixed-bottom">
				<button class="submit_btn" @click="goBack()">返回</button>
			</div>
		</div>
	</body>
	<script src="js/toolCheckDet.js"></script>
</html>
